package com.young.launch_task_init.demo.task

import android.app.Application
import com.young.launch_task_init.core.task.AsynTask
import java.util.concurrent.CountDownLatch

/**
 * Author：young
 * .
 * Time： 1/4/2023 下午4:21 周六
 * .
 * Desc：
 */
class RongIMInitTask(count: Int = 1, timeout: Long = 0) : AsynTask(count, timeout) {
    override fun runTask(application: Application, countDownLatch: CountDownLatch) {
        Thread {
            try {
                Thread.sleep(1000)
            } catch (e: Exception) {
                e.printStackTrace()
            } finally {
                countDownLatch.countDown()
            }
        }.start()
    }

    override fun getName(): String {
        return "融云IM初始化"
    }
}